//
//  FunDetail.m
//  项目三
//
//  Created by rimi on 15/10/13.
//  Copyright (c) 2015年 rimi. All rights reserved.
//

#import "FunDetail.h"

@interface FunDetail () {

    UILabel *_manyLabel;
    UILabel *_dataLabel;
}

- (void)initializeUserInterface; /**< 初始化用户界面 */

@end

@implementation FunDetail

- (instancetype)init
{
    self = [super init];
    if (self) {
        [self initializeUserInterface];
    }
    return self;
}

- (void)initializeUserInterface {

    [super initializeUserInterface];
    
    UIImageView *detailView = [[UIImageView alloc] initWithFrame:DHFlexibleFrame(CGRectMake(193, 30, 170, 170))];
    detailView.image = [UIImage imageNamed:@"详情默认图"];
    [self.scrollView addSubview:detailView];
    
    for (int i = 0; i < 22; i ++) {
        _manyLabel = [[UILabel alloc] initWithFrame:DHFlexibleFrame(CGRectMake(0, 230 + i * 38, 278, 38))];
        _manyLabel.textAlignment = NSTextAlignmentCenter;
        _manyLabel.font = [UIFont systemFontOfSize:17];
        _manyLabel.layer.borderColor = [UIColor blackColor].CGColor;
        _manyLabel.layer.borderWidth = 1;
        _manyLabel.text = FUNDLABEL[i];
        [self.scrollView addSubview:_manyLabel];
        
        _dataLabel = [[UILabel alloc] initWithFrame:DHFlexibleFrame(CGRectMake(278, 230 + i * 38, 278, 38))];
        _dataLabel.textAlignment = NSTextAlignmentCenter;
        _dataLabel.font = [UIFont systemFontOfSize:17];
        _dataLabel.layer.borderColor = [UIColor blackColor].CGColor;
        _dataLabel.layer.borderWidth = 1;
        [self.scrollView addSubview:_dataLabel];
    }
    UILabel *remidLabel = [[UILabel alloc] initWithFrame:DHFlexibleFrame(CGRectMake(0, 230 + 22 * 38, 557, 38))];
    remidLabel.layer.borderColor = [UIColor blackColor].CGColor;
    remidLabel.layer.borderWidth = 1;
    remidLabel.text = F2324[0];
    remidLabel.font = [UIFont systemFontOfSize:17];
    [self.scrollView addSubview:remidLabel];
    
    UILabel *remindLabel = [[UILabel alloc] initWithFrame:DHFlexibleFrame(CGRectMake(0, 230 + 23 * 38, 557, 80))];
    remindLabel.text = F2324[1];
    remindLabel.layer.borderColor = [UIColor blackColor].CGColor;
    remindLabel.layer.borderWidth = 1;
    remindLabel.numberOfLines = 0;
    remindLabel.font = [UIFont systemFontOfSize:17];
    [self.scrollView addSubview:remindLabel];
}
@end
